﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeSmackdown.Web.Models.SnippetModel>" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    code smackdown
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">    
    <% Html.RenderPartial("SnippetPartial", ViewData.Model); %>
    <% if (ViewData.Model.CurrentUserVoted)
       { %>
    <% Html.RenderPartial("CommentsPartial", ViewData.Model); %>
    <% if (Request.IsAuthenticated) { Html.RenderPartial("CreateCommentPartial", ViewData.Model); } %>
    <% } %>
</asp:Content>
